package net.spmiller;

public class FlickrPhoto extends net.spmiller.Photo {
    private String flickrId;
    private final String url;

    public FlickrPhoto(String flickrId, String uniqueId, String url) {
        this(flickrId, uniqueId, url, null);
    }

    public FlickrPhoto(FlickrPhoto photo, Location location) {
        this(photo.getFlickrId(), photo.getUniqueId(), photo.getUrl(), location);
    }

    public FlickrPhoto(String flickrId, String uniqueId, String url, Location location) {
        super(uniqueId, location);
        this.flickrId = flickrId;
        this.url = url;
    }

    public String getFlickrId() {
        return flickrId;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return "FlickrPhoto{" +
                "flickrId='" + flickrId + '\'' +
                ", url='" + url + '\'' +
                "} " + super.toString();
    }
}
